package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_ret_rse database table.
 * 
 */
@Entity
@Table(name="per_ret_rse")
@NamedQuery(name="PerRetRse.findAll", query="SELECT p FROM PerRetRse p")
public class PerRetRse implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int rseid;

	private String rseage;

	private String rsebiye;

	private String rsecard;

	private String rsedizhi;

	private String rseemail;

	private String rseexp;

	private String rseexps;

	private String rsegj;

	private String rsehgt;

	private String rsehide;

	private String rsejieshao;

	private String rsejs;

	private String rsemz;

	private String rsename;

	private String rsephome;

	private String rsestat;

	private String rsexz;

	//bi-directional many-to-one association to PerIntention
	@OneToMany(mappedBy="perRetRse")
	private List<PerIntention> perIntentions;

	//bi-directional many-to-one association to PerRetDem
	@OneToMany(mappedBy="perRetRse")
	private List<PerRetDem> perRetDems;

	//bi-directional many-to-one association to PerRetIrw
	@OneToMany(mappedBy="perRetRse")
	private List<PerRetIrw> perRetIrws;

	//bi-directional many-to-one association to PerRetRcd
	@OneToMany(mappedBy="perRetRse")
	private List<PerRetRcd> perRetRcds;

	//bi-directional many-to-one association to PerPmsPot
	@ManyToOne
	@JoinColumn(name="POTID")
	private PerPmsPot perPmsPot;

	//bi-directional many-to-one association to PerPmsSex
	@ManyToOne
	@JoinColumn(name="SEXID")
	private PerPmsSex perPmsSex;

	//bi-directional many-to-one association to PerRetRfs
	@ManyToOne
	@JoinColumn(name="RFSID")
	private PerRetRfs perRetRf;

	public PerRetRse() {
	}

	public int getRseid() {
		return this.rseid;
	}

	public void setRseid(int rseid) {
		this.rseid = rseid;
	}

	public String getRseage() {
		return this.rseage;
	}

	public void setRseage(String rseage) {
		this.rseage = rseage;
	}

	public String getRsebiye() {
		return this.rsebiye;
	}

	public void setRsebiye(String rsebiye) {
		this.rsebiye = rsebiye;
	}

	public String getRsecard() {
		return this.rsecard;
	}

	public void setRsecard(String rsecard) {
		this.rsecard = rsecard;
	}

	public String getRsedizhi() {
		return this.rsedizhi;
	}

	public void setRsedizhi(String rsedizhi) {
		this.rsedizhi = rsedizhi;
	}

	public String getRseemail() {
		return this.rseemail;
	}

	public void setRseemail(String rseemail) {
		this.rseemail = rseemail;
	}

	public String getRseexp() {
		return this.rseexp;
	}

	public void setRseexp(String rseexp) {
		this.rseexp = rseexp;
	}

	public String getRseexps() {
		return this.rseexps;
	}

	public void setRseexps(String rseexps) {
		this.rseexps = rseexps;
	}

	public String getRsegj() {
		return this.rsegj;
	}

	public void setRsegj(String rsegj) {
		this.rsegj = rsegj;
	}

	public String getRsehgt() {
		return this.rsehgt;
	}

	public void setRsehgt(String rsehgt) {
		this.rsehgt = rsehgt;
	}

	public String getRsehide() {
		return this.rsehide;
	}

	public void setRsehide(String rsehide) {
		this.rsehide = rsehide;
	}

	public String getRsejieshao() {
		return this.rsejieshao;
	}

	public void setRsejieshao(String rsejieshao) {
		this.rsejieshao = rsejieshao;
	}

	public String getRsejs() {
		return this.rsejs;
	}

	public void setRsejs(String rsejs) {
		this.rsejs = rsejs;
	}

	public String getRsemz() {
		return this.rsemz;
	}

	public void setRsemz(String rsemz) {
		this.rsemz = rsemz;
	}

	public String getRsename() {
		return this.rsename;
	}

	public void setRsename(String rsename) {
		this.rsename = rsename;
	}

	public String getRsephome() {
		return this.rsephome;
	}

	public void setRsephome(String rsephome) {
		this.rsephome = rsephome;
	}

	public String getRsestat() {
		return this.rsestat;
	}

	public void setRsestat(String rsestat) {
		this.rsestat = rsestat;
	}

	public String getRsexz() {
		return this.rsexz;
	}

	public void setRsexz(String rsexz) {
		this.rsexz = rsexz;
	}

	public List<PerIntention> getPerIntentions() {
		return this.perIntentions;
	}

	public void setPerIntentions(List<PerIntention> perIntentions) {
		this.perIntentions = perIntentions;
	}

	public PerIntention addPerIntention(PerIntention perIntention) {
		getPerIntentions().add(perIntention);
		perIntention.setPerRetRse(this);

		return perIntention;
	}

	public PerIntention removePerIntention(PerIntention perIntention) {
		getPerIntentions().remove(perIntention);
		perIntention.setPerRetRse(null);

		return perIntention;
	}

	public List<PerRetDem> getPerRetDems() {
		return this.perRetDems;
	}

	public void setPerRetDems(List<PerRetDem> perRetDems) {
		this.perRetDems = perRetDems;
	}

	public PerRetDem addPerRetDem(PerRetDem perRetDem) {
		getPerRetDems().add(perRetDem);
		perRetDem.setPerRetRse(this);

		return perRetDem;
	}

	public PerRetDem removePerRetDem(PerRetDem perRetDem) {
		getPerRetDems().remove(perRetDem);
		perRetDem.setPerRetRse(null);

		return perRetDem;
	}

	public List<PerRetIrw> getPerRetIrws() {
		return this.perRetIrws;
	}

	public void setPerRetIrws(List<PerRetIrw> perRetIrws) {
		this.perRetIrws = perRetIrws;
	}

	public PerRetIrw addPerRetIrw(PerRetIrw perRetIrw) {
		getPerRetIrws().add(perRetIrw);
		perRetIrw.setPerRetRse(this);

		return perRetIrw;
	}

	public PerRetIrw removePerRetIrw(PerRetIrw perRetIrw) {
		getPerRetIrws().remove(perRetIrw);
		perRetIrw.setPerRetRse(null);

		return perRetIrw;
	}

	public List<PerRetRcd> getPerRetRcds() {
		return this.perRetRcds;
	}

	public void setPerRetRcds(List<PerRetRcd> perRetRcds) {
		this.perRetRcds = perRetRcds;
	}

	public PerRetRcd addPerRetRcd(PerRetRcd perRetRcd) {
		getPerRetRcds().add(perRetRcd);
		perRetRcd.setPerRetRse(this);

		return perRetRcd;
	}

	public PerRetRcd removePerRetRcd(PerRetRcd perRetRcd) {
		getPerRetRcds().remove(perRetRcd);
		perRetRcd.setPerRetRse(null);

		return perRetRcd;
	}

	public PerPmsPot getPerPmsPot() {
		return this.perPmsPot;
	}

	public void setPerPmsPot(PerPmsPot perPmsPot) {
		this.perPmsPot = perPmsPot;
	}

	public PerPmsSex getPerPmsSex() {
		return this.perPmsSex;
	}

	public void setPerPmsSex(PerPmsSex perPmsSex) {
		this.perPmsSex = perPmsSex;
	}

	public PerRetRfs getPerRetRf() {
		return this.perRetRf;
	}

	public void setPerRetRf(PerRetRfs perRetRf) {
		this.perRetRf = perRetRf;
	}

}